home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / maple_st.swf / scripts / DefineSprite_944 / frame_15 / DoAction_2.as next >
Encoding:
Text File  |  2010-04-12  |  769 b   |  24 lines

  1. _root.arrowimg = "fire";
  2. _root.player.ani.gotoAndStop(10);
  3. duplicateMovieClip("_root.arrows.arrow","arrow" + _root.i,16384 + _root.i);
  4. _root.arrowimg = "fire";
  5. arrown = "arrow" + _root.i;
  6. _root.i += 1;
  7. arrowy = random(4);
  8. if(_root.player._xscale >= 0)
  9. {
  10.    _root.arrows[arrown]._x = _root.player._x - 40.05;
  11.    _root.arrows[arrown]._xscale = _root.player._xscale;
  12.    _root.arrows[arrown]._y = _root.player._y + 46.65;
  13.    _root.arrows[arrown]._y -= arrowy;
  14. }
  15. else if(_root.player._xscale < 0)
  16. {
  17.    _root.arrows[arrown]._x = _root.player._x + 40.05;
  18.    _root.arrows[arrown]._xscale = _root.player._xscale;
  19.    _root.arrows[arrown]._y = _root.player._y + 46.65;
  20.    _root.arrows[arrown]._y -= arrowy;
  21. }
  22. _root.arrowimg = "fire";
  23. _root.alerttime = 200;
  24.